package com.smsc.headend.task.engine.executor.concurrent;


import cn.hutool.extra.spring.SpringUtil;
import com.smsc.headend.module.task.consts.TaskKafkaTopic;
import com.smsc.headend.task.engine.service.task.TaskService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.kafka.config.KafkaListenerEndpointRegistry;
import org.springframework.kafka.listener.MessageListenerContainer;

import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

@Slf4j
public class CheckTaskExecutorRunner implements Runnable {

    @Autowired
    TaskService taskService;

    @Override
    public void run() {
        taskService.taskExecutionPoolCheck();
    }
}
